printing: Fix origin for scaled, rotated pages
authorLeo Wolf <jclw@ymail.com>
Wed, 26 Nov 2014 20:18:36 +0000 (20:18 +0000)
committerMarek Kasik <mkasik@redhat.com>
Thu, 27 Nov 2014 11:21:27 +0000 (12:21 +0100)
commitc85c3510e70ea8396dde56606ac0380825c3732f
tree43435d070eba9740bb6b054a7843521ff0a7cd85
parent732af31424b8f382d869258dea1936616ab2748d
printing: Fix origin for scaled, rotated pages

The calls to cairo_translate in
_gtk_print_context_rotate_according_to_orientation,
_gtk_print_context_reverse_according_to_orientation and
_gtk_print_context_translate_into_margin assume an unscaled context.
These functions should therefore be called before scaling the context,
otherwise the origin does not always end up in the top left corner.

https://bugzilla.gnome.org/show_bug.cgi?id=740742
gtk/gtkprintoperation.c